﻿using Connection.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Connection.Presenter
{
    [Serializable()]
    public class InviPresenter:MarshalByRefObject
    {
        UserModel _userModel;
        UserDB _userDB;

        public bool IsInviOk(string username)
        {
            _userModel = new UserModel(username);
            if (_userModel.IsRightUsername())
                return true;
            else return false;
        }

        public List<string> ListOnline()
        {
            _userDB = new UserDB();
            return _userDB.SelectIsUserOnline();
        }

        public int Test() { return 0; }
    }
}
